const express = require('express');
const router = express.Router();
const multer = require('multer');
const path = require('path');

const searchService = require('../service/searchService')

// 表单验证
const expressJoi = require('@escook/express-joi')
const { search } = require('../rule/searchRule')

router.get('', expressJoi(search), searchService.index);

module.exports = router;
